package com.tudouji.project.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 物料管理对象 salesspecification
 *
 * @author wf
 * @date 2021-01-07
 */
@Data
public class Salesspecification {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String autoId;
    private String guid;
    private String description;
    private BigDecimal netweight;
    private BigDecimal packageweight;
    private Integer valuation;
    private Integer status;
    private String brandid;
    private Long stockunitid;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sort;

    @Excel(name = "品牌")
    private String brandname;
    @Excel(name = "产品")
    private String productname;
    @Excel(name = "规格")
    private String name;
    @Excel(name = "产品编号")
    private String code;
    @Excel(name = "金蝶编码")
    private String kingdeenum;
    @Excel(name = "单位")
    private String unit;
    @Excel(name = "库存单位")
    private String stockunit;
    @Excel(name = "内部结算标识")
    private String inSettleFlagName;
    @Excel(name = "内部结算价格标识")
    private String innerSettlePriceFlagName;
    @Excel(name = "创建人")
    private String operator;

    private Integer type;
    /**
     * 操作员id
     */
    private String operatorid;

    /**
     * 产品id
     */
    private String productguid;


    /**
     * 促销让利点
     */
    private BigDecimal concession;


    /**
     * 最后更新日期
     */
    private Date lastupdate;

    /**
     * 产品标识
     */
    private Integer flag;

    /**固定毛利率*/
    private BigDecimal innerSettleFixRate;

    /**固定毛利额*/
    private BigDecimal innerSettleFixRateAmt;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    private boolean dataNum;

    private Long kingdeeunitid;

    private String kingdeeunit;

    private Integer baseFlag;

    private Long sfunitid;

    private Brand brand;

    private String name1;

    private Integer[] stats;

    private Integer[] types;

    private String categoryid;

    private BigDecimal spprice;

    private Integer spamount;


    private Integer innerSettleFlag;


    private Integer innerSettlePriceFlag;

    private String mtSkuid;
    private Long mtStockunitId;
    private String mtStockunitName;

    //美团单位到库存单位的转换率
    private BigDecimal mttostockUnitRate;
}
